package com.docking.heylo.web.controller;

import com.docking.heylo.service.IPayOrderService;
import com.docking.heylo.web.dto.PayOrderDto;
import com.docking.heylo.web.utils.ResultUtil;
import com.docking.heylo.web.vo.BaseVo;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/***
 * 支付订单管理
 */
@RestController
@RequestMapping("/payOrder")
public class PayOrderController {

    @Autowired
    private IPayOrderService payOrderService;

    /****
     * 订单支付记录
     *
     * @return
     */
    @RequestMapping("/orderList")
    private BaseVo orderList(@RequestBody PayOrderDto orderDto) {
        PageInfo<Map<String, Object>> lists = payOrderService.orderList(orderDto);
        return ResultUtil.success("成功", lists);
    }


}
